package com.chuangmei.com.arindoorlocationsystem.bean;

import android.graphics.drawable.Drawable;

import com.chuangmei.com.arindoorlocationsystem.utils.DataUtils;

/**
 * 项目名称：ARIndoorLocationSystem
 * 类描述：现版本APP信息
 * 创建人：LuoHao
 * 创建时间：2018/4/8 17:55
 * 修改人：LuoHao
 * 修改时间：2018/4/8 17:55
 * 修改备注：
 */

public class AppInfo {


    private String name;
    private String packageName;
    private Drawable icon;
    private long firstInstallTime;
    private long lastUpdateTime;
    private String versionName;
    private int versionCode;

    public String getName() {
        return name;
    }

    public String getPackageName() {
        return packageName;
    }

    public Drawable getIcon() {
        return icon;
    }

    public long getFirstInstallTime() {
        return firstInstallTime;
    }

    public String getLastUpdateTime() {
        String time = DataUtils.DateTimeLong2String(lastUpdateTime);
        return time;
    }

    public String getVersionName() {
        return versionName;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public AppInfo(String name, String packageName, Drawable icon, long firstInstallTime, long lastUpdateTime, String
            versionName, int
            versionCode) {

        this.name = name;
        this.packageName = packageName;
        this.icon = icon;
        this.firstInstallTime = firstInstallTime;
        this.lastUpdateTime = lastUpdateTime;
        this.versionName = versionName;
        this.versionCode = versionCode;
    }
}
